//
//  RNBridgeModule.m
//  Moodthermometer
//
//  Created by 杨会娟 on 2018/6/7.
//  Copyright © 2018年 Facebook. All rights reserved.
//

#import "RNBridgeModule.h"
#import "React/RCTBridge.h"

@implementation RNBridgeModule
@synthesize bridge = _bridge;

RCT_EXPORT_MODULE(RNBridgeModule)

// RN跳转原生界面
RCT_EXPORT_METHOD(RNChatVC:(NSString *)domain appKey:(NSString *)appKey appID:(NSString *)appID token:(NSString *)token){
  dispatch_async(dispatch_get_main_queue(), ^{
    [[NSNotificationCenter defaultCenter]postNotificationName:@"RNChatVC" object:@{@"domain":domain,@"appKey":appKey,@"appID":appID,@"token":token}];
  });
}

@end
